import { INewsArticleCardProps } from "@/components/news/article-card"
import { INewsArticleRecommendItemProps } from "@/components/news/article-recommend-item"
import { INewsAuthorCardProps } from "@/components/news/author-card"
import { INewsCategoryCardProps } from "@/components/news/news-category-card"
import { IVideoCardProps } from "@/components/news/video-card"

export const getArticleList = async (): Promise<INewsArticleCardProps[]> =>{
  // 模拟数据
  return [
    {
      id: 1,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      image: 'https://picsum.photos/800/450',
      likeCount: 10256,
      publishedTime: "2024-05-24 12:42:41",
    },
    {
      id: 2,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      image: 'https://picsum.photos/800/450',
      likeCount: 10256,
      publishedTime: "2024-05-24 12:42:41",
    },
    {
      id: 3,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      image: 'https://picsum.photos/800/450',
      likeCount: 10256,
      publishedTime: "2024-05-24 12:42:41",
    },
    {
      id: 4,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      image: 'https://picsum.photos/800/450',
      likeCount: 10256,
      publishedTime: "2024-05-24 12:42:41",
    },
    {
      id: 5,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      image: 'https://picsum.photos/800/450',
      likeCount: 10256,
      publishedTime: "2024-05-24 12:42:41",
    },
    {
      id: 6,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      image: 'https://picsum.photos/800/450',
      likeCount: 10256,
      publishedTime: "2024-05-24 12:42:41",
    },
    
  ]
}

export const getArticleRecommendList = async (): Promise<INewsArticleRecommendItemProps[]> => {
  return [
    {
      id: 1,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      viewCount: 10256,
      authorName: '章北海说新能源',
    },
    {
      id: 2,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      viewCount: 10256, 
      authorName: '章北海说新能源',
    },
    {
      id: 3,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      viewCount: 10256, 
      authorName: '章北海说新能源',
    },
    {
      id: 4,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      viewCount: 10256, 
      authorName: '章北海说新能源',
    },
  ]
}

export const getAuthorList = async (): Promise<INewsAuthorCardProps[]> => {
  return [
    {
      id: 1,
      slug: 'chapter-beijing',
      name: '章北海说新能源',
      avatarUrl: 'https://picsum.photos/200/200',
      intro: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      subscribeCount: 10256,
      tag: [
        {
          slug: 'energy-vehicle',
          name: '企业认证',
        },
        {
          slug: 'tesla-model-s',
          name: '知名评车人',
        },
      ],
    },
    {
      id: 2,
      slug: 'chapter-beijing',
      name: '章北海说新能源',
      avatarUrl: 'https://picsum.photos/200/200',
      intro: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      subscribeCount: 10256,  
      tag: [
        {
          slug: 'energy-vehicle',
          name: '企业认证',
        },
        {
          slug: 'tesla-model-s',
          name: '知名评车人',
        },
      ],
    },
    {
      id: 3,
      slug: 'chapter-beijing',
      name: '章北海说新能源',
      avatarUrl: 'https://picsum.photos/200/200',
      intro: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      subscribeCount: 10256,  
      tag: [
        {
          slug: 'energy-vehicle',
          name: '企业认证',
        }
      ],
    },
    {
      id: 4,
      slug: 'chapter-beijing',
      name: '章北海说新能源',
      avatarUrl: 'https://picsum.photos/200/200',
      intro: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      subscribeCount: 10256,  
      tag: [
        {
          slug: 'energy-vehicle',
          name: '企业认证',
        },
        {
          slug: 'tesla-model-s',
          name: '知名评车人',
        },
      ],
    },
    {
      id: 5,
      slug: 'chapter-beijing',
      name: '章北海说新能源',
      avatarUrl: 'https://picsum.photos/200/200',
      intro: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      subscribeCount: 10256,  
      tag: [
        {
          slug: 'energy-vehicle',
          name: '企业认证',
        },
      ],
    },
    {
      id: 6,
      slug: 'chapter-beijing',
      name: '章北海说新能源',
      avatarUrl: 'https://picsum.photos/200/200',
      intro: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      subscribeCount: 10256,  
      tag: [
        {
          slug: 'energy-vehicle',
          name: '企业认证',
        },
      ],
    }
  ]
}

export const getVideoList = async (): Promise<IVideoCardProps[]> => {
  return [
    {
      id: 1,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      coverUrl: 'https://picsum.photos/800/450',
      duration: '04:35',
      viewCount: 10256,
      likeCount: 10256,
    },
    {
      id: 2,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      coverUrl: 'https://picsum.photos/800/450',
      duration: '04:35',
      viewCount: 10256,
      likeCount: 10256,
    },
    {
      id: 3,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      coverUrl: 'https://picsum.photos/800/450',
      duration: '04:35',
      viewCount: 10256,
      likeCount: 10256,
    },
    {
      id: 4,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      coverUrl: 'https://picsum.photos/800/450',
      duration: '04:35',
      viewCount: 10256,
      likeCount: 10256,
    },
    {
      id: 5,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      coverUrl: 'https://picsum.photos/800/450',
      duration: '04:35',
      viewCount: 10256,
      likeCount: 10256,
    },
    {
      id: 6,
      slug: '15-million-tesla-model-s-pickup-or-sale',
      title: '15万拿下二手特斯拉Model S，捡漏还是接盘？',
      coverUrl: 'https://picsum.photos/800/450',
      duration: '04:35',
      viewCount: 10256,
      likeCount: 10256,
    },
  ]
}

export const getCategoryList = async (): Promise<INewsCategoryCardProps[]> => {
  return [
    {
      id: 1,
      slug: 'chapter-beijing',
      name: '新车测评',
      coverUrl: 'https://picsum.photos/800/450',
      description: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      type: 'article',
    },
    {
      id: 2,
      slug: 'chapter-beijing',
      name: '车评',
      coverUrl: 'https://picsum.photos/800/450',
      description: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      type: 'article',
    },
    {
      id: 3,
      slug: 'chapter-beijing',
      name: '新能源',
      coverUrl: 'https://picsum.photos/800/450',
      description: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      type: 'article',
    },
    {
      id: 4,
      slug: 'chapter-beijing',
      name: '行业动态',
      coverUrl: 'https://picsum.photos/800/450',
      description: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      type: 'video',
    },
    {
      id: 5,
      slug: 'chapter-beijing',
      name: '新能源',
      coverUrl: 'https://picsum.photos/800/450',
      description: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      type: 'article',
    },
    {
      id: 6,
      slug: 'chapter-beijing',
      name: '行业动态',
      coverUrl: 'https://picsum.photos/800/450',
      description: '章北海是一个新能源汽车爱好者，他喜欢分享他的知识和经验。',
      type: 'article',
    },
  ]
}